<template>
  <div style="width:190px;">
    <div
      class="wrap"
      style="width: 100%;
    position: relative;"
    >
      <div
        class="left-bar"
        style="width: 2px;
    height: 60px;
    background-color: #00704E;
    position: absolute;"
      ></div>
      <div
        class="title"
        style="color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px;"
      >奖牌排名</div>
      <div
        class="content"
        style="width: 90%;
    margin-left: 10px;
    font-size: 12px;
    color: #fff;"
      >
        <div
          class="item"
          v-for="(item, index) in datalist"
          :key="item.id"
          style="display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-top: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);"
        >
          <img
            src="../assets/26.png"
            alt=""
            style="position: absolute;
    z-index: 0;"
          >
          <div
            class="ranking"
            style="font-size: 18px;
    font-weight: bold;
    color: #9DB1BB;
    position: relative;
    margin-left: 7.5px;"
          >{{index+1}}</div>
          <div>
            奖牌总数 {{item.medialsNum}}
          </div>
          <div style="display: flex;
    flex-direction: column;
    align-items: center;">
            <img
              :src="item.nationIcon"
              alt=""
            >
            <div>{{item.country}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datalist: [
        {
          medialsNum: 146, //奖牌数量
          nationIcon: require("../assets/23.png"), //国家图标
          country: "中国",
        },
        {
          medialsNum: 146, //奖牌数量
          nationIcon: require("../assets/23.png"), //国家图标
          country: "中国",
        },
        {
          medialsNum: 146, //奖牌数量
          nationIcon: require("../assets/23.png"), //国家图标
          country: "中国",
        },
      ],
    };
  },
};
</script>

<style>
/* 
.wrap{
    width: 100%;
    position: relative;
}
.left-bar{
    width: 2px;
    height: 60px;
    background-color: #00704E;
    position: absolute;
}
.title{
    color: #fff;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}
.content{
    width: 90%;
    margin-left: 10px;
    font-size: 12px;
    color: #fff;
}
.item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-top: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.item > img{
    position: absolute;
    z-index: 0;
}   
.ranking{
    font-size: 18px;
    font-weight: bold;
    color: #9DB1BB;
    position: relative;
    margin-left: 7.5px;
}
.item > div:last-child{
    display: flex;
    flex-direction: column;
    align-items: center;
} */
</style>